// 处理动态仪表板菜单数据
export const resolveDashboardMenu = ({ serveMenu }: any) => {
  serveMenu.unshift({
    icon: 'home',
    name: '首页',
    id: 'home',
    key: 'home',
    parentResourceId: 'ROOT',
    path: '/',
    leaf: true,
  });
  serveMenu.unshift({
    icon: 'dashboard',
    id: 'default',
    key: 'default',
    parentResourceId: 'dashboard',
    name: '个人主页',
    path: '/dashboard/default',
    leaf: true,
  });
  serveMenu.push({
    icon: 'tool',
    name: '工程支持',
    id: 'engineeringSupport',
    key: 'engineeringSupport',
    parentResourceId: 'engineeringSupport',
    path: 'http://intranet.geely.com/projects/Engineering-Supporting/_layouts/15/WopiFrame2.aspx?sourcedoc={C09FBC6D-C344-4835-82A4-C6622BF77E8B}&file=GBOM系统.pptx&action=default',
    openTabPath:
      'http://intranet.geely.com/projects/Engineering-Supporting/_layouts/15/WopiFrame2.aspx?sourcedoc={C09FBC6D-C344-4835-82A4-C6622BF77E8B}&file=GBOM系统.pptx&action=default',
    leaf: true,
  });
  return serveMenu;
};
